function maxL2err(u,n,term)

if(exist('data.mat','file'))
    load data;
else
    disp('Data file reading error!')
end

unknownsposition=(1:n-1)/n;
uex =[uex{1}(unknownsposition');uex{2}(unknownsposition');uex{3}(unknownsposition');uex{4}(unknownsposition')];

disp('max error')
err=max(abs(uex(1:term*(n-1))-u));
disp(err)

disp('L2 error')
err=sqrt(sum((uex(1:term*(n-1))-u).^2/n));
disp(err)


